package routers

import (
	"github.com/gin-gonic/gin"
	"muziai-server/api"
	"muziai-server/middleware"
)

func ChatRouter(r *gin.RouterGroup) {
	middleware := middleware.MiddlewareAuth{}
	app := api.ApiApp.ChatApi
	r.POST("chat/sse", middleware.MiddlewareAuth(), app.ChatCreateView)
	r.GET("chat", middleware.MiddlewareAuth(), app.ChatListView)
	r.DELETE("chat", middleware.MiddlewareAuth(), app.ChatRemoveView)
}
